package algorithm;

public class ClusterFactory {
    public AbstractClusterAlgorithm create(Class<? extends AbstractClusterAlgorithm> c) {
        if (c != null) {
            try {
                return c.newInstance();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
        return null;
    }

    public static Class<? extends AbstractClusterAlgorithm> KMEANS = KMeans.class;
    public static Class<? extends AbstractClusterAlgorithm> LVQ = LVQ.class;
    public static Class<? extends AbstractClusterAlgorithm> GMM = GaussianMixture.class;
    public static Class<? extends AbstractClusterAlgorithm> DBSCAN = DBSCAN.class;
    public static Class<? extends AbstractClusterAlgorithm> AGNES = AGNES.class;
    public static Class<? extends AbstractClusterAlgorithm> DAKMEANS = DAKMeans.class;
}